//
//  HomeChannelView.m
//  DemoV2
//
//  Created by 董一龙 on 2022/6/25.
//
#import "../../Common.h"
#import "HomeChannelView.h"

@implementation HomeChannelView

- (instancetype)initWithFrame:(CGRect)frame{
    if(self = [super initWithFrame:frame]){
        [self initUI];
    }
    return self;
}

- (void)initUI{
    self.backgroundColor = [UIColor whiteColor];
    self.topView = [[HomeChannelTopView alloc] initWithFrame:CGRectMake(0, 0, self.frame.size.width, kSafeAreaTopHeight + 100)];
    [self addSubview:self.topView];
    
    self.tableView = [[UITableView alloc] initWithFrame: CGRectMake(0, self.topView.frame.size.height, self.frame.size.width, kContentHeight - 100)];
    self.tableView.backgroundColor = [UIColor whiteColor];
    [self addSubview:self.tableView];
}

@end
